﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HumanResorcesProj.DAL._HR_DSTableAdapters;
using HumanResorcesProj.DAL;
using HumanResorcesProj.GUI.Extensions;

using System.Web;

namespace HumanResorcesProj.BLL
{
    public class conv
    {
        private EmpConversationTableAdapter info = null;
        public EmpConversationTableAdapter adapter
        {
            get
            {
                if (info == null) info = new EmpConversationTableAdapter();
                return info;
            }
        }


        public HumanResorcesProj.DAL._HR_DS.EmpConversationDataTable getdata()
        {
            return adapter.GetData();
        }

        public void insertConv(string EmpID, string InitiatorName, string ConvDate, string ConvLocation, string PresentInDiscussion, string ConversationContext, string ConvSummary)
        {
            adapter.InsertNewConv(EmpID, InitiatorName, ConvDate, ConvLocation, PresentInDiscussion, ConversationContext, ConvSummary);
        }

        public HumanResorcesProj.DAL._HR_DS.EmpConversationDataTable getdataByID(string EmpID)
        {
            return adapter.GetDataBy1(EmpID);
        }
        }
}
